package org.teamh.gui;

import java.util.LinkedList;

import org.teamh.logic.lobby.Game;
import org.teamh.logic.lobby.Player;

/**
 * This class provides an event, which can be distributed the the graphical user
 * interface for special interaction. This event handling is required for
 * correct thread access via other thread instances.
 * 
 * @author richard
 * 
 */
public class Event {
	
	private String key;
	private String value;
	private LinkedList<Player> players;
	private LinkedList<Game> games;
	private String color;
	
	public Event(String key, String value) {
		this.key = key;
		this.value = value;
	}
	
	public Event(String key, String value, String color) {
		this.key = key;
		this.value = value;
		this.color = color;
	}
	
	public Event(String key, LinkedList<Player> players) {
		this.key = key;
		this.players = players;
	}
	
	public Event(String key, String key2, LinkedList<Game> games) {
		this.key = key;
		this.games = games;
	}

	public String getKey() {
		return key;
	}
	
	public String getValue() {
		return value;
	}
	
	public LinkedList<Player> getPlayers() {
		return players;
	}
	
	public LinkedList<Game> getGames() {
		return games;
	}
	
	public String getColor() {
		return color;
	}
}
